import request from '@/utils/request'

// 查询幻灯片播放列表
export function listSlideShow(query) {
    return request({
        url: '/admin/slideShow/list',
        method: 'get',
        params: query
    })
}

// 查询幻灯片播放详细
export function getSlideShow(slide) {
    return request({
        url: '/admin/slideShow/' + slide,
        method: 'get'
    })
}

// 新增幻灯片播放
export function addSlideShow(data) {
    return request({
        url: '/admin/slideShow',
        method: 'post',
        data: data
    })
}

// 修改幻灯片播放
export function updateSlideShow(data) {
    return request({
        url: '/admin/slideShow',
        method: 'put',
        data: data
    })
}

// 删除幻灯片播放
export function delSlideShow(slide) {
    return request({
        url: '/admin/slideShow/' + slide,
        method: 'delete'
    })
}
